from abc import abstractmethod, ABCMeta


class payment(metaclass=ABCMeta):
    @abstractmethod
    def pay(self, money):
        pass


class Alipay(payment):
    def paying(self, money):
        print('支付宝支付了%d元' % money)


class WeiChat(payment):
    def pay(self, money):
        print('微信支付了%d元' % money)


def pay(pai_obj, money):
    pai_obj.pay(money)


p = Alipay()
